package com.bwhx.eruler.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.Pinlei;
import com.bwhx.eruler.dao.PinleiDAO;
import com.bwhx.eruler.service.PinleiService;

@Service
public class PinleiServiceImpl implements PinleiService {
	
	
	@Autowired
	PinleiDAO pinleiDAO;
	@Override
	public void insert(Pinlei pinlei) {
		pinleiDAO.insert(pinlei);
		
	}
	@Override
	public List<Pinlei> list(Page p) {
		return pinleiDAO.list(p);
	}
	@Override
	public Integer count(Pinlei pinlei) {
		return pinleiDAO.count(pinlei);
	}
	@Override
	public void del(String ppid) {
		pinleiDAO.del(ppid);
		
	}


}
